home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / SciAn / src / ScianGeometry.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  749b  |  37 lines

  1. /*ScianGeometry.h
  2.   Eric Pepke
  3. */
  4.  
  5. typedef union
  6.     {
  7.     long intVal;
  8.     real realVal;
  9.     } GeoItem;
  10.  
  11. typedef struct
  12.     {
  13.     Thing thing;        /*The thing part*/
  14.     long nAlloc;        /*Number of items in the geometry*/
  15.     long nWritten;        /*Index of the last item word*/
  16.     GeoItem *items;        /*The items*/
  17.     } Geometry, *GeoPtr;
  18.  
  19. #define GEOCHUNK    5000    /*Chunk size for geometry*/
  20.  
  21. /*Item types*/
  22. #define IT_POLYGON    1    /*Polygon item*/
  23.  
  24. #ifdef PROTO
  25. void InitGeometry(void);
  26. void KillGeometry(void);
  27. ObjPtr NewGeometry(void);
  28. ObjPtr ConvertDatasetToPicture(ObjPtr, ObjPtr);
  29. void AppendPolygonToGeometry(ObjPtr, long, long*);
  30. #else
  31. void InitGeometry();
  32. void KillGeometry();
  33. ObjPtr NewGeometry();
  34. ObjPtr ConvertDatasetToPicture();
  35. void AppendPolygonToGeometry();
  36. #endif
  37.